package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.EventDetailsMapper;
import com.ruoyi.system.domain.EventDetails;
import com.ruoyi.system.service.IEventDetailsService;

/**
 * 事件详细信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-06-27
 */
@Service
public class EventDetailsServiceImpl implements IEventDetailsService 
{
    @Autowired
    private EventDetailsMapper eventDetailsMapper;

    /**
     * 查询事件详细信息
     * 
     * @param eventId 事件详细信息主键
     * @return 事件详细信息
     */
    @Override
    public EventDetails selectEventDetailsByEventId(Long eventId)
    {
        return eventDetailsMapper.selectEventDetailsByEventId(eventId);
    }

    /**
     * 查询事件详细信息列表
     * 
     * @param eventDetails 事件详细信息
     * @return 事件详细信息
     */
    @Override
    public List<EventDetails> selectEventDetailsList(EventDetails eventDetails)
    {
        return eventDetailsMapper.selectEventDetailsList(eventDetails);
    }

    /**
     * 新增事件详细信息
     * 
     * @param eventDetails 事件详细信息
     * @return 结果
     */
    @Override
    public int insertEventDetails(EventDetails eventDetails)
    {
        return eventDetailsMapper.insertEventDetails(eventDetails);
    }

    /**
     * 修改事件详细信息
     * 
     * @param eventDetails 事件详细信息
     * @return 结果
     */
    @Override
    public int updateEventDetails(EventDetails eventDetails)
    {
        return eventDetailsMapper.updateEventDetails(eventDetails);
    }

    /**
     * 批量删除事件详细信息
     * 
     * @param eventIds 需要删除的事件详细信息主键
     * @return 结果
     */
    @Override
    public int deleteEventDetailsByEventIds(Long[] eventIds)
    {
        return eventDetailsMapper.deleteEventDetailsByEventIds(eventIds);
    }

    /**
     * 删除事件详细信息信息
     * 
     * @param eventId 事件详细信息主键
     * @return 结果
     */
    @Override
    public int deleteEventDetailsByEventId(Long eventId)
    {
        return eventDetailsMapper.deleteEventDetailsByEventId(eventId);
    }
}
